
<div class="col-sm-12">
	<div class="box margin-middle max-width">
		<!-- BOX-BODY -->
		<div class="box-body">
			{{#bs-form formLayout=formLayout model=nurseGroupModel invalid=(action "invalid")}}
			<div class="row">
				<div class="col-xs-12">
					<p class="user-add-btn">
						{{#if detailEdit}}
							{{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-save"  text='保存' clickAction="saveNurseGroup" saveNurseGroup="saveNurseGroup"}}
							{{/ui/mix-button}}
							{{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo"  text='取消'  clickAction="detailCancel" detailCancel="detailCancel" }}
							{{/ui/mix-button}}
						{{else}}
							{{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-edit"  text='编辑'  clickAction="detailEditClick" detailEditClick="detailEditClick"}}
			        {{/ui/mix-button}}
							{{#ui/mix-button class="user-btn trash-btn" iconClass="fa fa-trash-o"  text='删除'  clickAction="delById" delById="delById"}}
			        {{/ui/mix-button}}
						{{/if}}
					</p>
				</div>
				<!-- 列表详细介绍 -->
				<div class="col-xs-12 nopadding-left">
					<div class="col-xs-12 nopadding-horizontal mt20">

						<!--已选成员-->
						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">已选成员：</span>
								{{#if detailEdit}}
									{{#if chooseStaff}}
										{{#each chooseStaff as |nurse|}}
												{{ui/choose-lable class="room" text=nurse.name hasSelected=nurse.selected
												itemSelect="changeStaffBack" code=nurse.id }}
										{{/each}}
									{{else}}
										<div class="input-group-content">请选择组员</div>
									{{/if}}
								{{else}}
									<div class="input-group-content">{{nurseGroupInfo.member}}</div>
								{{/if}}
							</div>
							
						</div>
						<!--未选成员-->
            {{#if detailEdit}}
						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
                <span class="input-group-addon">未选成员：</span>
                    {{#each staffNameList as |nurse|}}
										{{ui/choose-lable class="nurse" text=nurse.name hasSelected=nurse.selected
										itemSelect="changeStaffType" code=nurse.id }}
                    {{/each}}
							</div>
						</div>
            {{/if}}
						<!--小组名称-->
						<div class="col-xs-12 col-sm-12">
							<div class="col-xs-12 col-sm-6 nopadding-left">
							<div class="form-input-group">
								<span class="input-group-addon">小组名称：</span>
								{{#if detailEdit}}
									{{#if id}}
										{{bs-form-element property="name" class="inline-block form-input-group label-normal" controlType="name" placeholder='小组名称(必填)'}}
									{{else}}
										{{bs-form-element property="name" class="inline-block form-input-group label-normal" controlType="name" placeholder='小组名称(必填)'}}
									{{/if}}
								{{else}}
									<div class="input-group-content">{{nurseGroupInfo.name}}</div>
								{{/if}}
							</div>
							
						</div>
						<!--组长-->
            <div class="col-xs-12 col-sm-6 nopadding-right">
              <div class="form-input-group">
                <span class="input-group-addon">组&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;长：</span>
                {{#if detailEdit}}
                {{#power-select class="input-group-content" placeholder="选择组长" options=leaderList  selected=defaultLeader searchField="namePinyin"
                  noMatchesMessage="没有相关内容" allowClear=false onchange=(action "selectLeader" ) as |leader|}}
                  {{leader.name}}
                {{/power-select}}
                {{else}}
                  <div class="input-group-content">{{nurseGroupInfo.leader.name}}</div>
                {{/if}}
              </div>
              
            </div>
					</div>
						<!--备注-->
						<div class="col-xs-12 col-sm-12">
							<div class="form-input-group">
								<span class="input-group-addon">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</span>
								{{#if detailEdit}}
									{{#if id}}
										{{bs-form-element property="name" class="inline-block form-input-group label-normal" controlType="name" placeholder='小组名称(必填)'}}
									{{else}}
										{{bs-form-element property="name" class="inline-block form-input-group label-normal" controlType="name" placeholder='小组名称(必填)'}}
									{{/if}}
								{{else}}
									<div class="input-group-content">{{nurseGroupInfo.name}}</div>
								{{/if}}
							</div>
							
						</div>

<!---
              {{#if detailEdit}}
						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
                <span class="input-group-addon">未选房间：</span>
                    {{#each roomNameList as |room|}}
										{{ui/choose-lable class="room" text=room.name hasSelected=room.selected
										itemSelect="changeRoomType" code=room.id }}
                    {{/each}}
							</div>
						</div>
            {{/if}}

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">已选房间：</span>
								{{#if detailEdit}}
                    {{#each chooseRoom as |room|}}
										{{ui/choose-lable class="room" text=room.name hasSelected=room.selected
										itemSelect="changeRoomBack" code=room.id }}
                    {{/each}}
								{{else}}
									<div class="input-group-content">{{nurseGroupInfo.roomsName}}</div>
								{{/if}}
							</div>
							
						</div>-->
					</div>
				</div>
				<!-- 列表详细介绍 -->

			</div>
			{{/bs-form}}
		</div>
		<!-- /BOX-BODY -->
	</div>
</div>
{{#if showpopInvitePassModal}}
	{{#bs-modal body=false footer=false header=false}}
		{{#bs-modal-header}}
			<h3 class="modal-title">删除提示</h3>
		{{/bs-modal-header}}
		{{#bs-modal-body}}
			<h4 class="modal-title">是否删除该条记录？</h4>
		{{/bs-modal-body}}

		{{#bs-modal-footer as |footer|}}
			{{#bs-button action=(action "cancelPassSubmit" nurseGroupInfo) type="primary" disabled=prepaidDisabled}}确定{{/bs-button}}
			{{#bs-button action=(action "invitation") type="default"}}取消{{/bs-button}}
		{{/bs-modal-footer}}
	{{/bs-modal}}
{{/if}}
